<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('变更服务商业务类型')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-setSignAgent-update">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">服务商编号：</label>
                <div class="col-sm-8">
                    <input type="text" name="agentNum" th:value="${agentInfo.agentNum}" class="form-control" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">服务商名称：</label>
                <div class="col-sm-8">
                    <input type="text" name="agentName" th:value="${agentInfo.agentName}" class="form-control" readonly/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">业务类型：</label>
                <div class="col-sm-8">
                    <select name="signAgent" class="form-control" th:value="${agentInfo.signAgent}">
                        <option value="">暂无</option>
                        <option value="4" th:selected="${agentInfo.signAgent=='4'}">电签</option>
                        <option value="0" th:selected="${agentInfo.signAgent=='0'}">传统</option>
                        <option value="1" th:selected="${agentInfo.signAgent=='1'}">电签与传统</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">GB业务类型：</label>
                <div class="col-sm-8">
                    <select name="gbSignAgent" class="form-control" th:value="${agentInfo.gbSignAgent}">
                        <option value="">暂无</option>
                        <option value="5" th:selected="${agentInfo.gbSignAgent=='5'}">GB电签</option>
                        <option value="6" th:selected="${agentInfo.gbSignAgent=='6'}">GB传统</option>
                        <option value="7" th:selected="${agentInfo.gbSignAgent=='7'}">GB电签与GB传统</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "agentInfo/agentInfo";
        $("#form-setSignAgent-update").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/updateAgent", $('#form-setSignAgent-update').serialize());
            }
        }

    </script>
</body>
</html>